//
//  LXLMeTableViewCell.m
//  真是不得姐啊
//
//  Created by 朱建鹏 on 16/8/24.
//  Copyright © 2016年 朱建鹏. All rights reserved.
//

#import "LXLMeTableViewCell.h"
#import "LXLMeCollectionView.h"
#import "LXLMeRecommendModel.h"
#import <UIImageView+WebCache.h>

@interface LXLMeTableViewCell ()


@property (weak, nonatomic) IBOutlet UIImageView *iconImgView;

@property (weak, nonatomic) IBOutlet UILabel *nameLab;

@property (weak, nonatomic) IBOutlet UILabel *subscribeNum;


@property (weak, nonatomic) IBOutlet UILabel *tiezishu;

@property (weak, nonatomic) IBOutlet LXLMeCollectionView *collectionView;








@end

@implementation LXLMeTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
   
    self.iconImgView.layer.cornerRadius = 3;
    self.iconImgView.layer.masksToBounds = YES;
  

   

}


- (void)setModel:(LXLMeRecommendModel *)model{
    
    _model = model;
    
    [self.iconImgView sd_setImageWithURL:[NSURL URLWithString:model.image_list]];
    
    self.nameLab.text = model.theme_name;
  
    self.subscribeNum.text = [NSString stringWithFormat:@"%@ | 总贴数 ",model.sub_number];
    
    
    
}
-(void)setUrl:(NSURL *)url{
    _url = url;
    self.collectionView.url = url;
}




- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
